<?php

namespace Welcomescreen\Agavi\View;

/**
 * The base view from which all Frontend module views inherit.
 */
class FrontendBaseView extends BaseView {
	/**
	 * @param      AgaviRequestDataHolder $rd
	 * @param      string $layoutName
	 */
	public function setupHtml(\AgaviRequestDataHolder $rd, $layoutName = null) {
		if($layoutName === null && !$this->getContainer()->getParameter('is_slot', false)) {
			$layoutName = 'frontend';
		}
		
		return parent::setupHtml($rd, $layoutName);
	}

}

?>